// pages/my/protocol/protocol.js
import { API_HOST } from "../../../utils/const"
import http from "../../../utils/http"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    host: API_HOST
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onShow: function () {
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  },

  test: function(){
    var that = this;
    http({
      url: "",
      data: {

      },
      success: function (res) {
        if (!res) return;
        that.setData({
          datas: res
        })
      }
    })
  }
})